package com.xrh.xdemo.service.entity;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;


/**
* 操作痕迹
*/
@Data
@TableName(value = "operate_trace" , autoResultMap = true)
@Builder
public class OperateTraceEntity  implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
    /**主键id */
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	@TableId(value="id" ,type = IdType.ASSIGN_ID)
	private Long id;

	/**操作时间 */
	@TableField("operate_time")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date operateTime;

	/**操作人用户id */
	@TableField("operate_user_id")
	private Long operateUserId;

	/**操作人用户名称 */
	@TableField("operate_user_name")
	private String operateUserName;
	
	/**操作人用户账号 */
	@TableField("operate_user_account")
	private String operateUserAccount;

	/**操作人用户工号 */
	@TableField("operate_user_job_no")
	private String operateUserJobNo;

	/**操作类型 */
	@TableField("operate_type")
	private String operateType;

	/**业务类型 */
	@TableField("business_type")
	private String businessType;

	/**业务编号 */
	@TableField("business_no")
	private String businessNo;

	/**标题 */
	@TableField("title")
	private String title;

    @Tolerate
    public OperateTraceEntity(){}
}
